package com.wn.ziroom.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author wangzhijia
 * @since 2023-02-23 02:27:54
 */
@Getter
@Setter
@TableName("t_owner")
public class Owner {

    /**
     * 业主ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 业主姓名
     */
    @TableField("owner_name")
    private String ownerName;

    /**
     * 房屋地址
     */
    @TableField("address_id")
    private Integer addressId;

    /**
     * 手机号
     */
    @TableField("phone")
    private String phone;


    /**
     * 身份证
     */
    @TableField("identity")
    private String identity;

    /**
     * 银行卡号
     */
    @TableField("bank_num")
    private String bankNum;

    /**
     * 签约时间
     */
    @TableField("signing_time")
    private Date signingTime;

    /**
     * 到期时间
     */
    @TableField("expiration_time")
    private Date expirationTime;

    @Override
    public String toString() {
        return "Owner{" +
                "id=" + id +
                ", ownerName='" + ownerName + '\'' +
                ", addressId=" + addressId +
                ", phone='" + phone + '\'' +
                ", identity='" + identity + '\'' +
                ", bankNum='" + bankNum + '\'' +
                ", signingTime=" + signingTime +
                ", expirationTime=" + expirationTime +
                '}';
    }

    public Owner() {
    }
}
